
import axios, {Axios} from 'axios'
const context = "/ucenter"

/**
 * 获取 RmsMaterialUsageConfig 分页列表
*/
export function getRmsMaterialUsageConfigPagination(data: any) {
  return axios.get(`${context}/rmsMaterialUsageConfig/pagination`, { params: data });
}


/**
 * 获取 RmsMaterialUsageConfig 所有数据
*/
export function getRmsMaterialUsageConfigAllList(data: any) {
  return axios.get(`${context}/rmsMaterialUsageConfig/all`, { params: data });
}


/**
 * 获取 RmsMaterialUsageConfig 详情
*/
export function getRmsMaterialUsageConfigDetailById(id: any) {
  return axios.get(`${context}/rmsMaterialUsageConfig/${id}`, { params:{id} });
}


/**
 * 新增 RmsMaterialUsageConfig
*/
export function addRmsMaterialUsageConfig(data: any) {
  return axios.post(`${context}/rmsMaterialUsageConfig`, data);
}

/**
 * 修改 RmsMaterialUsageConfig
*/
export function updateRmsMaterialUsageConfig(data: any) {
  return axios.put(`${context}/rmsMaterialUsageConfig`, data);
}

/**
 * 删除 RmsMaterialUsageConfig
*/
export function batchRemoveRmsMaterialUsageConfig(data: any) {
  return axios.post(`${context}/rmsMaterialUsageConfig/batchRemove`, data);
}

    